package com.app.entity.authority;

import com.app.entity.BaseDto;
import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.Email;
import javax.persistence.*;
import java.util.List;

@Entity
@Table(name="staff")
public class Staff  extends BaseDto {
    private static final long serialVersionUID = 1L;

    @Length(min=6,max=20,message="请输入6～20字符")
    private String Name;

    @Email(message="请输入email格式")
    private String Email;
    public String getName() {
        return Name;
    }

    public void setName(String name) {
        Name = name;
    }

    public String getEmail() {
        return Email;
    }

    public void setEmail(String email) {
        Email = email;
    }

    public String getMobile() {
        return Mobile;
    }

    public void setMobile(String mobile) {
        Mobile = mobile;
    }

    public String getPic() {
        return Pic;
    }

    public void setPic(String pic) {
        Pic = pic;
    }

    public String getLoginName() {
        return LoginName;
    }

    public void setLoginName(String loginName) {
        LoginName = loginName;
    }

    @Length(min=11,max=11,message="请输入11个字符")
    private String Mobile;

    private String Pic;
    private String LoginName;

    public String getDepartmentid() {
        return departmentid;
    }

    public void setDepartmentid(String departmentid) {
        this.departmentid = departmentid;
    }


    private String departmentid;

    public String getDepartmentname() {
        return departmentname;
    }

    public void setDepartmentname(String departmentname) {
        this.departmentname = departmentname;
    }

    private String departmentname;

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    private String password;


    public String getSelectedArray() {
        return selectedArray;
    }

    public void setSelectedArray(String selectedArray) {
        this.selectedArray = selectedArray;
    }

    private String selectedArray;





    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getRoleId() {
        return roleId;
    }

    public void setRoleId(String roleId) {
        this.roleId = roleId;
    }

    private String userId;
    private String roleId;



    public List<Staff> getChildren() {
        return children;
    }

    public void setChildren(List<Staff> children) {
        this.children = children;
    }

    List<Staff> children;

    private String empId;
    private String sex;

    public String getEmpId() {
        return empId;
    }

    public void setEmpId(String empId) {
        this.empId = empId;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }


    public boolean isStatus() {
        return status;
    }

    public void setStatus(boolean status) {
        this.status = status;
    }

    private boolean status;
}
